using Gateway.Domain.Entities;
using ShardingCore.Core.EntityMetadatas;
using ShardingCore.VirtualRoutes.Months;

namespace Gateway.Domain.TableRoutes;

// public class OrderVirtualTimeTableRoute : AbstractSimpleShardingMonthKeyDateTimeVirtualTableRoute<Order>
// {
//     public override void Configure(EntityMetadataTableBuilder<Order> builder)
//     {
//         builder.ShardingProperty(x => x.OrderTime);
//     }
//
//     public override bool AutoCreateTableByTime()
//     {
//         return true;
//     }
//
//     /// <summary>
//     /// fixed value don't use DateTime.Now because if  if application restart this value where change
//     /// </summary>
//     /// <returns></returns>
//     /// <exception cref="NotImplementedException"></exception>
//     public override DateTime GetBeginTime()
//     {
//         return new DateTime(2023, 1, 1);
//         // throw new NotImplementedException();
//     }
// }